package com.xtedu.examproject.service;

import com.xtedu.examproject.dao.base.MenuPathDao;
import com.xtedu.examproject.dao.impl.MenuPathDaoImpl;
import com.xtedu.examproject.entity.MenuPath;
import com.xtedu.examproject.util.PageHelper;

import java.util.List;

public class MenuPathService {
    private MenuPathDao menuPathDao;
    public MenuPathService()
    {
        menuPathDao = new MenuPathDaoImpl();
    }
    public List<MenuPath> findAll() throws Exception
    {
        return menuPathDao.findAll();
    }
    public int insert(MenuPath menuPath) throws Exception
    {
        return menuPathDao.insert(menuPath);
    }
    public PageHelper findAll(int pageIndex, int pageSize) throws Exception
    {
        return menuPathDao.findAll(pageIndex, pageSize);
    }
}
